import axios from 'axios';
const API_HOST = 'http://api.shenlongip.com';

/**
 * 登录
 * @param username 
 * @param password 
 * @returns 
 */
// (count: number, key: string, sign: string)
export const getIP = (count: number) => {
  const pattern = "json";
  return axios.get(`${API_HOST}/ip?key=qn5xyxu9&pattern=${pattern}&count=${count}&sign=acb9a9262226758b12cbfab1dc659d8a`);
}